home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Python-1.4 / Test.py < prev   
Text File  |  1998-06-24  |  677b  |  25 lines

  1.  
  2. print 'This script will now start the Python 1.4 test set.'
  3. print 'Depending on the speed of your Amiga, this may take several minutes.'
  4. print
  5. print 'You should see "All tests OK.", if all tests are passed correctly.'
  6. print 'To be 100% sure, run this script TWICE:'
  7. print 'first, answer \'y\' to the question \'delete .pyc files?\', and the'
  8. print 'second time, answer \'n\'.'
  9. print
  10.  
  11. # Change to the test directory
  12. import sys,os
  13. os.chdir('Python:Lib/test')
  14. sys.path.insert(0,os.curdir)
  15.  
  16. if 'y'==raw_input('Delete .pyc files first? '):
  17.     # Remove all .pyc files
  18.     import glob
  19.     for pyc in glob.glob('*.pyc'):
  20.         os.unlink(pyc)
  21.  
  22. print 'Testing...'
  23. import autotest
  24. print 'Finished.'
  25.